package com.item.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Emp implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer eid;

    @TableField("ename")
    private String name;

    private String store;

    private String phone;

    private String station;

    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("create_datatime")
    private Date createDatetime;

    private String account;

    private String password;

    public Emp(Integer eid, Integer status) {
        this.eid = eid;
        this.status = status;
    }

}
